package com.example.hotel.pojo;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

//注:这里的validation校验有点问题,遇到了再说

@Data
public class Room {
    private Integer id;
    @NotEmpty(message = "roomname不能为空")
    private String name;

    private double cost;
    private String address;
    @NotEmpty(message = "roomtype不能为空")
    private String roomtype;
    private String detail;
    private Integer status;
    private String imgurl;
}
